import styles from "./page.module.css";
import Link from "next/link";

// 自定义按钮
const MyButton = (
  { text,
    url,
    type = 'primary',
  }) => {

  // 普通链接按钮
  return (
    <div className={styles.buttonWrapper}>
      <Link href={url} className={styles.link}>
        <button
          className={`${styles.button} ${styles[type]}`}
        >
          {text}
        </button>
      </Link>
    </div>
  );
};

export default MyButton;